<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class AdminIndex_model extends MY_Model{
	public function __construct()
    {
        parent::__construct();
    }
	public function pm_projectrecord_all($where=array(),$field='*'){
		$this->com_where($where);
		$this->db->select($field);
        $query=$this->db->get('pm_project_record');
        return $query->result_array();
    }
    public function pm_projectchange_all($where=array(),$field='*'){
		$this->com_where($where);
		$this->db->select($field);
        $query=$this->db->get('pm_project_change');
        return $query->result_array();
    }
	public function pm_projectrecord_all_count($where=array()){
		$this->com_where($where);
        return $this->db->count_all_results('pm_project_record');
    }
}
?>